window.onload = function () {
	//创建横向图标的函数
var iconArr = ["AnewPlayImg/img1.png",
"AnewPlayImg/img2.png",
"AnewPlayImg/img3.png",
"AnewPlayImg/img4.png",
"AnewPlayImg/img5.png",
"AnewPlayImg/img6.png",
"AnewPlayImg/img1.png",
"AnewPlayImg/img2.png",
"AnewPlayImg/img3.png",
"AnewPlayImg/img4.png",
"AnewPlayImg/img5.png",
"AnewPlayImg/img6.png"
];
var iconTitle=[
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行",
"单排上分最强打野英雄Tops5排行"];

for (var i = 0 ; i < iconArr.length ;i++) {
	var icon = createIcon(iconArr[i],iconTitle[i]);
	 //给列表中的每个元素添加点击事件
     $("#b_con>li").bind("touchend",function(){
     	changeInter();
     });
	$("#b_con").append(icon);
};

//创建列表元素函数
function createIcon(imageSrc,title) {
	return $("<li><div class='b_imgBox'><img src=" + imageSrc + " class='b_img' /></div><div class='b_info'><span class='b_font1'>" + title + "</span><span class='b_font2'>更改时间:2017-01-04</span></div></li>")
};

//点击列表跳转游戏详情页面
function changeInter () {
	window.location.href = "AcontInfo.html";
};

//点击返回按钮 返回上一层
$(".b_navImgBack").on("touchend",function () {
	window.location.href = "Aindex01.html";
});
}

$(".b_footerNav").on("touchend", function() {
		console.log($(this).index())
		//		$(".b_footerNav").css("color", "#C0C0C0");
		//		$(this).css("color", "#FE786F");
		switch($(this).index()) {
			case 0:
				window.location.href = "Aindex01.html";
				break;
			case 1:
				window.location.href = "index2.html";
				break;
			case 2:
				window.location.href = "index3.html";
				break;
			case 3:
				window.location.href = "loaded.html";
				break;
			default:
				break;
		}
	})


